<template>
  <router-view/>
  <van-tabbar  v-if="$route.meta.TabbarShow" v-model="active" route>
    <van-tabbar-item replace to="/" icon="home-o">首页</van-tabbar-item>
        <van-tabbar-item replace to="/video" icon="video-o">视频</van-tabbar-item>
          <van-tabbar-item replace to="/" icon="chat-o">消息</van-tabbar-item>
            <van-tabbar-item replace to="/my" icon="setting-o">我的</van-tabbar-item>
              </van-tabbar>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      const active = ref('home');
      return {active};
    },
  }
</script>
<style>
  #app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
  }

  </style>